<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<nav class="pagination-sm">
	<ul class="pagination">
		<li class="page-item"><a class="page-link" href="#"
			onclick="getPage('previous')">上一页${index };${size }</a></li>
		<c:forEach begin="1" end="${size }" var="n">
			<c:choose>
				<c:when test="${n==index }">
					<li class="page-item active"><a class="page-link" href="#"
						onclick="getPage(${n})">${n }</a></li>
				</c:when>
				<c:otherwise>
					<li class="page-item"><a class="page-link" href="#"
						onclick="getPage(${n})">${n }</a></li>
				</c:otherwise>
			</c:choose>
		</c:forEach>
		<li class="page-item"><a class="page-link" href="#"
			onclick="getPage('next')">下一页</a></li>
	</ul>
</nav>
